/**
 * 加载图片
 */
var preloaded = new Array();
function preload_images() {
    for (var i = 0; i < arguments.length; i++) {
        preloaded[i] = document.createElement('img');
        preloaded[i].setAttribute('src', arguments[i]);
    }
}
preload_images(
        './img/portal/object/ileopard_pack_def.png',
        './img/portal/object/ileopard_pack.png',
        './img/portal/home/eye.png',
        
        './img/component/bpm/dir/01.png',
        './img/component/bpm/dir/02.png',
        './img/component/bpm/dir/03.png',
        './img/component/bpm/dir/04.png',
        './img/component/bpm/dir/05.png',
        
        './img/component/bpm/define/01.png',
        './img/component/bpm/define/02.png',
        './img/component/bpm/define/03.png',
        './img/component/bpm/define/04.png',
        './img/component/bpm/define/05.png',
        
        './img/component/bpm/jpdl/start32.png',
        './img/component/bpm/jpdl/end32.png',
        './img/component/bpm/jpdl/end-cancel32.png',
        './img/component/bpm/jpdl/end-error32.png',
        './img/component/bpm/jpdl/state32.png',
        './img/component/bpm/jpdl/task32.png',
        './img/component/bpm/jpdl/decision32.png',
        './img/component/bpm/jpdl/fork32.png',
        './img/component/bpm/jpdl/join32.png',
        './img/component/bpm/jpdl/sub-process32.png'
	);

PrimeFaces.locales['zh'] = {
        closeText: '关闭',
        prevText: '上一月',
        nextText: '下一月',
        currentText: '今天',
        monthNames: ['一月','二月','三月','四月','五月','六月',
        '七月','八月','九月','十月','十一月','十二月'],
        monthNamesShort: ['一','二','三','四','五','六',
        '七','八','九','十','十一','十二'],
        dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'],
        dayNamesShort: ['日','一','二','三','四','五','六'],
        dayNamesMin: ['日','一','二','三','四','五','六'],
        weekHeader: '星期',
        firstDay: 1,
        isRTL: false,
        showMonthAfterYear: false,
        yearSuffix: '',
        month: '月',
        week: '周',
        day: '日',
        allDayText : '全天'
    };

PrimeFaces.locales['zh_cn'] = {
        closeText: '关闭',
        prevText: '上一月',
        nextText: '下一月',
        currentText: '今天',
        monthNames: ['1月','2月','3月','4月','5月','6月',
        '7月','8月','9月','10月','11月','12月'],
        monthNamesShort: ['1','2','3','4','5','6',
        '7','8','9','10','11','12'],
        dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'],
        dayNamesShort: ['日','一','二','三','四','五','六'],
        dayNamesMin: ['日','一','二','三','四','五','六'],
        weekHeader: '星期',
        firstDay: 1,
        isRTL: false,
        showMonthAfterYear: false,
        yearSuffix: '',
        month: '月',
        week: '周',
        day: '日',
        allDayText: '全天',
        am: '上午',
        pm: '下午'
    };
